<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Fenyes extends Model
{
    protected $table='article1';
    public static function getAll($where){
        return self::where($where)->paginate(['list_rows'=>4,'query'=>request()->param()]);
    }

    /**
     * @param $where
     * @return bool
     * 接收条件参数后返回控制器层删除一条数据的方法
     */
    public static function delOne($where){
        return self::where($where)->delete();
    }
}
